import axios from '@/libs/api.request'

/**
 * 热点地图
 * @return {[type]}        [description]
 */
export const mapList = (params) => {
  return axios.request({
    url: '/api/localDataMonth/findListByTId',
    method: 'get',
    params
  })
}

/**
 * 散点图数据
 * @return {[type]}        [description]
 */
export const sd = (params) => {
  return axios.request({
    url: '/api/localDataMonth/getDeficiencyCountByMouth',
    method: 'get',
    params
  })
}

/**
 * 柱状图数据
 * @return {[type]}        [description]
 */
export const barLine = (params) => {
  return axios.request({
    url: '/api/localDataMonth/getDeficiencyCountByDay',
    method: 'get',
    params
  })
}

/**
 * 表具详情
 * @return {[type]}        [description]
 */
export const meterDetail = (params) => {
  return axios.request({
    url: '/api/localDataMonth/getMeterDeficiencyDetail',
    method: 'get',
    params
  })
}
/**
 * 热力图数据
 * @param  {[type]} params [description]
 * @return {[type]}        [description]
 */
export const deficiency = (params) => {
  return axios.request({
    url: '/api/localDataMonth/getMeterDeficiencyByMouth',
    method: 'get',
    params
  })
}

/**
 * desc: 请求表格数据
 * param {type}
 * return: void
 */
export const fetchDownTableData = (params) => {
  return axios.request({
    url: '/api/localDataMonth/getMeterListPaged',
    method: 'get',
    params
  })
}
